package com.bao.shop.entity;

public class UserInfo {
    private String uid;//用户id
    private String userName;//用户名
    private String cardType;//卡类型
    private int integral;//积分
    private String userStratus;//用户状态
    private String password;//密码

    public UserInfo() {
    }

    public UserInfo(String uid) {
        this.uid = uid;
    }

    public UserInfo(String uid, String userName, String cardType, int integral, String userStratus, String password) {
        this.uid = uid;
        this.userName = userName;
        this.cardType = cardType;
        this.integral = integral;
        this.userStratus = userStratus;
        this.password = password;
    }

    @Override
    public String toString() {
        return uid+ "\t" + userName + "\t " + cardType + "\t " + integral + "\t " +  userStratus+ "\t ";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserInfo userInfo = (UserInfo) o;

        return uid.equals(userInfo.uid);
    }

    @Override
    public int hashCode() {
        return uid.hashCode();
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getUserStratus() {
        return userStratus;
    }

    public void setUserStratus(String userStratus) {
        this.userStratus = userStratus;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
